import request from '@/utils/request'

// 查询入库管理列表
export function listStockIn(query) {
  return request({
    url: '/wms/wms/stockIn/list',
    method: 'get',
    params: query
  })
}

// 更新库存
export function updInventory(stockInUuid) {
  return request({
    url: '/wms/wms/stockIn/upd-inventory/' + stockInUuid,
    method: 'get'
  })
}



// 查询入库管理详细
export function getStockIn(stockInUuid) {
  return request({
    url: '/wms/wms/stockIn/' + stockInUuid,
    method: 'get'
  })
}

// 新增入库管理
export function addStockIn(data) {
  return request({
    url: '/wms/wms/stockIn',
    method: 'post',
    data: data
  })
}

// 修改入库管理
export function updateStockIn(data) {
  return request({
    url: '/wms/wms/stockIn',
    method: 'put',
    data: data
  })
}

// 删除入库管理
export function delStockIn(stockInUuid) {
  return request({
    url: '/wms/wms/stockIn/' + stockInUuid,
    method: 'delete'
  })
}
